# $OpenBSD: Makefile,v 1.4 2017/04/21 13:27:47 kurt Exp $

COMMENT =		apache project to transform xml documents using xslt

VERSION =		2.7.2
VERSION_=		${VERSION:S/./_/g}
DISTNAME =		xalan-j${VERSION}
DISTFILES =		xalan-j_${VERSION_}-bin.tar.gz
PKGNAME =		xalan-j-${VERSION}
CATEGORIES =		textproc
REVISION =		0

HOMEPAGE =		http://xalan.apache.org/index.html
MAINTAINER =		Bryan Everly <bryan@bceassociates.com>

MODULES =		java
MODJAVA_VER =		1.7+
MODJAVA_JRERUN =	Yes

# Apache 2.0
PERMIT_PACKAGE_CDROM =	Yes

MASTER_SITES =		http://mirror.reverse.net/pub/apache/xalan/xalan-j/binaries/

BUILD_DEPENDS =		archivers/gtar
TAR =			gtar

NO_BUILD =		Yes
NO_TEST =		Yes

WRKDIST =		${WRKDIR}/xalan-j_${VERSION_}
INSTALL_DIR =		${MODJAVA_DOC_DIR}/xalan-j
EXAMPLE_DIR =		${MODJAVA_EXAMPLE_DIR}/xalan-j
JAR_DIR =		${MODJAVA_JAR_DIR}/xalan-j

do-install:
	${INSTALL_DATA_DIR} ${INSTALL_DIR} ${EXAMPLE_DIR} ${JAR_DIR}
	cp -R ${WRKDIST}/samples/* ${EXAMPLE_DIR}
	cp ${WRKDIST}/*.{html,txt} ${INSTALL_DIR}
	cp ${WRKDIST}/*.jar ${JAR_DIR}

.include <bsd.port.mk>
